package hibernate.dao;

import hibernate.model.object.Sex;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class SexDAOImpl extends BasicDAOImpl implements SexDAO{

	SexDAOImpl(){
		super();
		System.out.println("SexDAOImpl create!");
	}
	
	public List<Sex> findBothSex(){
		LinkedHashMap<String, String> orderBy = new LinkedHashMap<String, String>();
		orderBy.put("id", "desc");
		return (List<Sex>)this.getResultList(Sex.class, "", orderBy);
	}

}
